﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data;

namespace Business {
    /// <summary>
    /// Class for checking login data
    /// </summary>
    public class UserLogin_Business {
        /// <summary>
        /// Create object to check user login
        /// </summary>
        /// <returns>return login data of the requested user object</returns>
        DataAccess.UserLogin_Access objt = new DataAccess.UserLogin_Access();
        public bool UserLogin(UserLogin_Data obj) {
            return objt.User_Login(obj);
        }
    }

    public class AdminLogin_Business {
        /// <summary>
        /// Create object to check Admin login
        /// </summary>
        /// <returns>return login data of the requested Admin object</returns>
        DataAccess.AdminLogin_Access objt = new DataAccess.AdminLogin_Access();
        public bool AdminLogin(AdminLogin_Data obj) {
            return objt.Admin_Login(obj);
        }
    }
}
